<!--#include("header.html")-->

<!--%import("filter/insert_denied_word.xml")-->
<!--%import("filter/delete_denied_word.xml")-->

<!-- xml js filter를 이용하기 위한 데이터 전달용 form -->
<form id="fo_denied_word" action="./" method="get">
<input type="hidden" name="word" value="" />
</form>

<!-- 수동 추가 -->
<form action="./" method="get" onsubmit="return procFilter(this, insert_denied_word)">
    <table cellspacing="0" class="rowTable">
    <tr>
        <th scope="row"><div>{$lang->word}</div></th>
        <td>
            <input type="text" name="word" value="" class="inputTypeText" />
            <p>{$lang->about_denied_word}</p>
        </td>
    </tr>
    <tr>
        <th colspan="2" class="button">
            <span class="button black stron"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
        </th>
    </tr>
    </table>
</form>

<!-- 목록 -->
<table cellspacing="0" class="rowTable">
<caption>Total {number_format($word_list)}</caption>
<thead>
    <tr>
        <th scope="col"><div>{$lang->no}</div></th>
        <th scope="col"><div>{$lang->word}</div></th>
        <th scope="col"><div>{$lang->hit}</div></th>
        <th scope="col"><div>{$lang->latest_hit}</div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col"><div>{$lang->cmd_delete}</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($word_list as $no => $val)-->
    <tr class="row{$cycle_idx}">
        <td>{count($word_list)-$no}</td>
        <td class="wide">{$val->word}</td>
        <td>{$val->hit}</td>
        <td><span title="{zdate($val->latest_hit, 'Y-m-d H:i:s')}">{zdate($val->latest_hit, 'Y-m-d')}</span></td>
        <td>{zdate($val->regdate,"Y-m-d")}</td>
        {@ $val->word = base64_encode($val->word);}
        <td><a href="#" onclick="doDeleteDeniedWord('{$val->word}');return false;" title="{$lang->cmd_delete}" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
    </tr>
    <!--@end-->
</tbody>
</table>
